package com.learn.core.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-03-13 19:38:47
 * @describe 学习表实体类
 */
@TableName("l_learn")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LLearn对象", description="学习表")
public class LLearn implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "learn_id", type = IdType.AUTO)
    private Integer learnId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "课件id")
    @TableField("courseware_id")
    private Integer coursewareId;


    @ApiModelProperty(value = "章节id")
    @TableField("chapter_id")
    private Integer chapterId;


    @ApiModelProperty(value = "进度")
    @TableField("speed")
    private String speed;

    @ApiModelProperty(value = "状态")
    @TableField("stutes")
    private String stutes;

    @ApiModelProperty(value = "学习时间")
    @TableField("learn_time")
    private Integer learnTime;

    @ApiModelProperty(value = "报名id")
    @TableField("enroll_id")
    private Integer enrollId;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;


    public Integer getLearnId() {
        return learnId;
    }

    public LLearn setLearnId(Integer learnId) {
        this.learnId = learnId;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public LLearn setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public Integer getCoursewareId() {
        return coursewareId;
    }

    public LLearn setCoursewareId(Integer coursewareId) {
        this.coursewareId = coursewareId;
        return this;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public LLearn setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
        return this;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getStutes() {
        return stutes;
    }

    public LLearn setStutes(String stutes) {
        this.stutes = stutes;
        return this;
    }

    public Integer getEnrollId() {
        return enrollId;
    }

    public LLearn setEnrollId(Integer enrollId) {
        this.enrollId = enrollId;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public LLearn setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public LLearn setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public LLearn setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public LLearn setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    public Integer getLearnTime() {
        return learnTime;
    }

    public LLearn setLearnTime(Integer learnTime) {
        this.learnTime = learnTime;
        return this;
    }

    @Override
    public String toString() {
        return "LLearn{" +
        "learnId=" + learnId +
        ", userId=" + userId +
        ", coursewareId=" + coursewareId +
        ", speed=" + speed +
        ", stutes=" + stutes +
        ", learnTime=" + learnTime +
        ", enrollId=" + enrollId +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
                ", chapterId=" + chapterId +
        "}";
    }
}